package com.sq;

import com.sq.convert.UserConvert;
import com.sq.entity.User;
import com.sq.vo.UserVo;
import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;

@MapperScan(basePackages = {"com.sq.mapper"})
@SpringBootApplication
public class ShopMallApplication {

    public static void main(String[] args) {
        SpringApplication.run(ShopMallApplication.class, args);
        User user = new User();
        user.setId(1);
        user.setUsername("111");

        UserVo vo = UserConvert.INSTANCE.convert3(user);
        System.out.println(vo);
    }

}
